package com.codeyang.feign.hystrix;

import com.alibaba.fastjson.JSON;
import com.codeyang.es.ProdEs;
import com.codeyang.feign.UserCollectSearchFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author 武汉尚学堂
 */
@Component
@Slf4j
public class UserCollectSearchFeignHystrix implements UserCollectSearchFeign {
    /**
     * 远程调用获取prodEs集合
     *
     * @param prodIds
     * @return
     */
    @Override
    public List<ProdEs> getProdEsByIds(List<Long> prodIds) {
        log.error("远程调用获取prodEs集合失败，ids为{}", JSON.toJSONString(prodIds));
        return null;
    }
}
